public class Step {
    public static void main(String[] args) {
        int s = step(3);
        System.out.println("s = " + s);
    }
    public static int step(int n){
        if (n == 1){
            return 1;
        }
        else {
            return n * step(n - 1);
        }
    }
}
